package com.lx.demo;

import java.time.LocalDate;
import java.util.Date;

/**
 * @author c先生
 * @date 2022年03月29日 下午 8:22:53
 * @describe
 */

public class Emp {
    //员工编号
    private Integer empNum;
    //员工姓名
    private String empName;
    //员工性别
    private String empGender;
    //员工入职时间
    private LocalDate empHirDate;
    //员工薪资
    private Double empSalary;
    //员工籍贯
    private String homeTown;
    //员工等级
    private String empLevel;
    public Integer getEmpNum() {
        return empNum;
    }

    public void setEmpNum(Integer empNum) {
        this.empNum = empNum;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getEmpGender() {
        return empGender;
    }

    public void setEmpGender(String empGender) {
        this.empGender = empGender;
    }

    public LocalDate getEmpHirDate() {
        return empHirDate;
    }

    public void setEmpHirDate(LocalDate empHirDate) {
        this.empHirDate = empHirDate;
    }

    public Double getEmpSalary() {
        return empSalary;
    }

    public void setEmpSalary(Double empSalary) {
        this.empSalary = empSalary;
    }

    public String getHomeTown() {
        return homeTown;
    }

    public void setHomeTown(String homeTown) {
        this.homeTown = homeTown;
    }

    public String getEmpLevel() {
        return empLevel;
    }

    public void setEmpLevel(String empLevel) {
        this.empLevel = empLevel;
    }

    public Emp() {
    }

    public Emp(Integer empNum, String empName, String empGender, LocalDate empHirDate, Double empSalary, String homeTown, String empLevel) {
        this.empNum = empNum;
        this.empName = empName;
        this.empGender = empGender;
        this.empHirDate = empHirDate;
        this.empSalary = empSalary;
        this.homeTown = homeTown;
        this.empLevel = empLevel;
    }

    @Override
    public String toString() {
        return "员工信息：" +
                "编号：" + empNum +
                " 姓名：'" + empName + '\'' +
                " 性别：'" + empGender + '\'' +
                " 入职日期：" + empHirDate +
                " 薪资：" + empSalary +
                " 籍贯：'" + homeTown + '\'' +
                " 员工等级：'" + empLevel + '\'' +
                '}';
    }
}
